﻿namespace CsharpHomework10
{
    internal class Program
    {
        /// <summary>
        /// 用户输入一个整数，给出它所有的因数
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            Console.WriteLine("请输入一个整数");
            string ?inputString=Console.ReadLine();
            if (int.TryParse(inputString, out int value))
            {
                for(int i = 2; i < value; i++)
                {
                    if(value%i == 0)
                        Console.WriteLine(i);
                }
            }
        }
    }
}
